package com.example.smartplay.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.smartplay.entity.Activity;
import com.example.smartplay.entity.Clubmembership;
import com.example.smartplay.entity.Result;
import com.example.smartplay.mapper.ClubmembershipMapper;
import com.example.smartplay.service.ClubmembershipService;
import com.example.smartplay.service.ClubmembershipService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 
 * @since 2024-07-18
 */
@Service
public class ClubmembershipServiceImpl extends ServiceImpl<ClubmembershipMapper, Clubmembership> implements ClubmembershipService {
    @Autowired
    private ClubmembershipMapper clubmembershipMapper;

    @Override
    public Result getClubmembership(Integer pageNum, Integer pageSize) {
        Page<Clubmembership> page = new Page<>(pageNum, pageSize);

        return Result.success(clubmembershipMapper.selectPage(page, null));

    }
}
